#pragma once

#include "StockNamespace.h"
#include "StockTypes.h"
#include "Visitor.h"


STOCK_NS_BEGIN

class MaxProfitVisitor : public Visitor
{
public:
	MaxProfitVisitor(StockProfit profit, StrategyNode * node);

	void Visit(StrategyNode * node);

	StrategyNode * GetStrategyNode();

private:
	StockProfit _profit;
	StrategyNode  * _node;
};

STOCK_NS_END
